<style>
.btn.btn-success-o{
    background: #fff;
    border: 1px solid #FF4444;
    color: #FF4444;
}
.btn.btn-success-o.active{
    background: #FF4444;
    border: 1px solid #FF4444;
    color: #fff;
}
.btn.btn-success-o.active .subtitle{
    color: #f2f2f2;
}
</style>
<div class='fui-page fui-page-current'>
    <div class="fui-header">
		<div class="fui-header-left">
			<a class="back" ng-click="goback()"></a>
		</div>
		<div class="title">充值股东</div>
		<div class="fui-header-right">&nbsp;</div>
    </div>
    <div class="fui-content">
		<div class='fui-cell-group' style="margin-top:0">
			<div class='fui-according'>
				<div class='fui-according-header' style="color: #666;line-height:1.2rem;padding-left:0.6rem">
					<span class='bold'>充值活动</span>
					<div style="font-size:0.65rem;color:#666;line-height:1.2rem;padding-left:1rem">
						<span class='bold'>单笔充值 <span class='text-danger'>{{pagedata.setting.gu_num}}</span> 个{{pagedata.setting.gu_typetitle}}，成为股东;</span>
					</div>
				</div>
			</div>
		</div>
		<div style="padding:0 0.5rem">
		<div class='fui-cell-group'>
			<div class='fui-cell'>
				<div class='fui-cell-label'>充值个数</div>
				<div class="fui-cell-info c000 bold" style="font-size:1rem">￥{{pagedata.item.money}}</div>
			</div>
		</div>
		</div>
		<a href="javascript:;" class='btn btn-success block' style="border-radius:1rem;line-height: 3;margin-top:1rem" ng-click="pagedata.recharge()">确认充值</a>
		<a href="javascript:;" class='btn btn-gray block' style="border-radius:1rem;line-height: 3;" ng-click="access_json('jy_gufee/index/')">返回中心</a>
</div>
<script>
scope.pagedata.recharge=function(){
	scope.post_json('//recharge/',scope.pagedata.item,function(pay_id){
		console.log('pay_id');console.log(pay_id);
		scope.tool.pay(pay_id,function(res){
				console.log('收到支付结果！');
				if(res.type=='success'){
					scope.message('充值成功！','','jy_gufee/index/');
				}else{
					scope.message('充值失败！'+res.message,'','jy_gufee/index/');
				}
		},'','','jy_gufee/index/');
	});
}
</script>